home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 September
/
PCWorld_2006-09_cd.bin
/
v cisle
/
hexer
/
mpth_17.exe
/
{app}
/
scripts
/
Random Fill.mps
< prev
next >
Wrap
Text File
|
2005-10-02
|
836b
|
37 lines
INCLUDE '*.lng'
= fill a file with random data
option globalvars 1
var start dword count dword editorf file rest dword offs dword
editorf = fileopen('::current', 'rw')
number_radix = 10
number_prefix = ''
number_suffix = ''
start = dword(input(__RF1__,__RF2__,text(filegetprop(editorf, 'selstart'))))
if filegetprop(editorf, 'selcount') == 0
count = filesize(editorf) - start
else
count = filegetprop(editorf, 'selcount')
endif
count = dword(input(__RF1__, __RF3__, Text(count)))
offs = count+start
fileseek editorf offs
fileseek editorf start
loop schleife (count / 8)
rest = count mod 8
if rest
filewrite editorf textcopy(data2text(QRandom),1, rest)
endif
showprogress 100, 100
fileclose editorf
end
@@schleife
filewrite editorf QRandom
showprogress offs, filepos(editorf)-start
return